package com.ruoyi.spot.openapi.quotesTicker.service.impl;

import java.util.List;

import com.ruoyi.spot.openapi.quotesTicker.domain.VO.SpotOpenapiQuotesTickerVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.spot.openapi.quotesTicker.mapper.SpotOpenapiQuotesTickerMapper;
import com.ruoyi.spot.openapi.quotesTicker.domain.SpotOpenapiQuotesTicker;
import com.ruoyi.spot.openapi.quotesTicker.service.ISpotOpenapiQuotesTickerService;

/**
 * 行情TickerService业务层处理
 * 
 * @author saumell
 * @date 2024-08-09
 */
@Service
public class SpotOpenapiQuotesTickerServiceImpl implements ISpotOpenapiQuotesTickerService 
{
    @Autowired
    private SpotOpenapiQuotesTickerMapper spotOpenapiQuotesTickerMapper;

    /**
     * 查询行情Ticker
     * 
     * @param id 行情Ticker主键
     * @return 行情Ticker
     */
    @Override
    public SpotOpenapiQuotesTickerVO selectSpotOpenapiQuotesTickerById(Integer id)
    {
        return spotOpenapiQuotesTickerMapper.selectSpotOpenapiQuotesTickerById(id);
    }

    /**
     * 查询行情Ticker列表
     * 
     * @param spotOpenapiQuotesTicker 行情Ticker
     * @return 行情Ticker
     */
    @Override
    public List<SpotOpenapiQuotesTickerVO> selectSpotOpenapiQuotesTickerList(SpotOpenapiQuotesTickerVO spotOpenapiQuotesTicker)
    {
        return spotOpenapiQuotesTickerMapper.selectSpotOpenapiQuotesTickerList(spotOpenapiQuotesTicker);
    }

    /**
     * 新增行情Ticker
     * 
     * @param spotOpenapiQuotesTicker 行情Ticker
     * @return 结果
     */
    @Override
    public int insertSpotOpenapiQuotesTicker(SpotOpenapiQuotesTicker spotOpenapiQuotesTicker)
    {
        return spotOpenapiQuotesTickerMapper.insertSpotOpenapiQuotesTicker(spotOpenapiQuotesTicker);
    }

    /**
     * 修改行情Ticker
     * 
     * @param spotOpenapiQuotesTicker 行情Ticker
     * @return 结果
     */
    @Override
    public int updateSpotOpenapiQuotesTicker(SpotOpenapiQuotesTicker spotOpenapiQuotesTicker)
    {
        return spotOpenapiQuotesTickerMapper.updateSpotOpenapiQuotesTicker(spotOpenapiQuotesTicker);
    }

    /**
     * 批量删除行情Ticker
     * 
     * @param ids 需要删除的行情Ticker主键
     * @return 结果
     */
    @Override
    public int deleteSpotOpenapiQuotesTickerByIds(Integer[] ids)
    {
        return spotOpenapiQuotesTickerMapper.deleteSpotOpenapiQuotesTickerByIds(ids);
    }

    /**
     * 删除行情Ticker信息
     * 
     * @param id 行情Ticker主键
     * @return 结果
     */
    @Override
    public int deleteSpotOpenapiQuotesTickerById(Integer id)
    {
        return spotOpenapiQuotesTickerMapper.deleteSpotOpenapiQuotesTickerById(id);
    }

    @Override
    public List<SpotOpenapiQuotesTickerVO> selectSpotAllData() {
        return spotOpenapiQuotesTickerMapper.selectSpotAllData();
    }

    @Override
    public Integer queryCurryNumber(String currencyPair) {
        return spotOpenapiQuotesTickerMapper.queryCurryNumber(currencyPair);
    }
}
